#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "systemcontroller.h"
#include "athlete/athletemodel.h"
#include "athlete/genderdelegate.h"
#include <QSqlTableModel>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(SystemController *controller, QWidget *parent = 0);
    ~MainWindow();

private:
    //Variables
    Ui::MainWindow *ui;
    SystemController *systemController;
    AthleteModel *model;
    GenderDelegate *gndDelegate;


private slots:
    void refreshView();
    void on_actionSportler_hinzuf_gen_triggered();
    void on_actionSettings_triggered();
    void showRightClickMenu(const QPoint &pos);
    void on_actionSportler_entfernen_triggered();
    void on_toolButton_clicked();
};

#endif // MAINWINDOW_H
